<!-- src/views/Home.vue  -->
<template>
    <div class="page">
        <Sidebar></Sidebar>
        <div class="child-page">
            <keep-alive>
                <router-view />
            </keep-alive>
        </div>
    </div>
</template>

<script setup>
import Sidebar from '@/components/Sidebar.vue';
import request from '@/request';

const getUserInfo = async () => {
    const res = await request.get('/api/master/user/list');
    return res.data;
};
getUserInfo();
</script>
<style lang="less" scoped>
.page {
    display: flex;

    .child-page {
        flex: 1;
        background-color: #e2e2e2;
    }
}
</style>